package bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
@Setter
@Getter
@AllArgsConstructor//全参构造器
public final class OpenArea implements Comparable<OpenArea>, Serializable {
    private Integer id;
    //方向
    private String area;
    //类别
    private GraduateProjectCategory graduateProjectCategory;
    private Teacher teacher;
    //对学生的要求
    private String requirement;
    //需要的学生数
    private int positionNum;
    //年份
    private int year;
    @Override
    public int compareTo(OpenArea openArea){
        return this.id-openArea.id;
    }
}
